package com.voute.Model.Impl;

import com.voute.Api.FileUploadService;
import com.voute.Model.Bean.UploadImgResponseBean;
import com.voute.Model.IUploadFileModel;
import com.voute.Utils.ServiceFactory;

import java.util.Map;

import okhttp3.RequestBody;
import rx.Observable;

/**
 * 文件上传model接口实现类
 * Created by liucxu on 2017/1/18.
 */

public class UploadFileModelImpl implements IUploadFileModel {
    @Override
    public Observable<UploadImgResponseBean> uploadImage(String url, Map<String, RequestBody> params) {
        return ServiceFactory.GetInstance().createService(FileUploadService.class).uploadImage(params);
    }
}
